package com.hmall.common.client;

import com.hmall.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Ms SUN
 * @date 2023/5/14
 */
@FeignClient("userservice")

public interface UserClient {
    @GetMapping("address/{addressId}")
    Address findAddressById(@PathVariable("addressId") Long id);

}
